package javaClassDesign.OveridingOverloading.volverCastear;

class Widget {
	String data = "data";

	public void doWidgetStuff() {
		System.out.println(data);
	}
}

/**
 * @author Johann
 * 
 */
class GoodWidget extends Widget {
	String data = "big data";

	public void doWidgetStuff() {
	}
}

public class WidgetUser {
	public static void main(String[] args) {
		Widget w = new GoodWidget();
		((Widget) w).doWidgetStuff();
	}
}